#include "BangoConstants.h"

    const int BangoConstants::SDK_TYPE = 7;
    const QString BangoConstants::SDK_VERSION = "1.2.0";

    const QString BangoConstants::POST_RESPONSE_SUCCESS = "OK";

    const QString BangoConstants::ERROR_TAG = "BANGO_INAPP_ANALYTICS";

    const QString BangoConstants::VIDEO_PARAMETERNAME = "BGO_VIDEOTYPE";
    const QString BangoConstants::VIDEO_LIVEPARAMETER = "LIVE";
    const QString BangoConstants::VIDEO_ONDEMANDPARAMETER = "ONDEMAND";

    const long BangoConstants::POSTDELAY_SESSIONEND = 10000L;

    const int BangoConstants::WIFI_CONNECTION = -999;
    const int BangoConstants::OPERATOR_CONNECTION = 0;
    const int BangoConstants::UNKNOWN_CONNECTION = -1;

    const QString BangoConstants::OPTION_OTHER = "OTHER";

    const QString BangoConstants::UNKNOWN_VERSION = "Unknown";
    const QString BangoConstants::UNKNOWN_INFORMATION = "Unknown";

    const QString BangoConstants::POSITIONINGMETHOD_ALLPOSITIONINGMETHODS = "AllPositioningMethods";
    const QString BangoConstants::POSITIONINGMETHOD_NONSATELLITEPOSITION = "NonSatellitePosition";
    const QString BangoConstants::POSITIONINGMETHOD_SATELLITEPOSITION = "SatellitePosition";
    const QString BangoConstants::LOCATION_CELL = "CELL";
    const QString BangoConstants::LOCATION_ASSISTED = "ASSISTED";
    const QString BangoConstants::LOCATION_GPS = "GPS";

    const int BangoConstants::ERROR_NONE = 0;
    const int BangoConstants::ERROR_USER = 1;
    const int BangoConstants::ERROR_INTERNAL_CRITICAL = -1;
    const int BangoConstants::ERROR_INTERNAL_WARNING = -2;

    const QString BangoConstants::SETTING_POST_URL = "https://bango.net/AppAnalytics/";
    const bool BangoConstants::SETTING_USEOFFLINESTORAGE = true;
    const bool BangoConstants::SETTING_FINDLOCATION = true;
    const bool BangoConstants::SETTING_LOGEVENTS = true;
    const int BangoConstants::SETTING_SESSION_RESUME_PERIOD = 10;
    const QString BangoConstants::SETTING_LOCATION_SOURCE = LOCATION_GPS;
    const bool BangoConstants::SETTING_LOCATION_FIND = true;

    const QString BangoConstants::DATETIME_FORMAT = "yyyy-MM-ddThh:mm:ss.zzz";

    const QString BangoConstants::DATABASE_NAME = "BangoAnalytics.db";
    const int BangoConstants::DATABASE_VERSION = 1;

    const QString BangoConstants::SQL_CREATE_TABLE = "CREATE TABLE IF NOT EXISTS InAppJSON(id INTEGER PRIMARY KEY, jsonText VARCHAR(8000))";
    const QString BangoConstants::SQL_INSERT_INTO_TABLE = "INSERT INTO InAppJSON values(NULL, '%1')";
    const QString BangoConstants::SQL_SELECT_FROM_TABLE  = "SELECT id, jsonText FROM InAppJSON order by id";
    const QString BangoConstants::SQL_DELETE_FROM_TABLE = "DELETE FROM InAppJSON WHERE id = %1";
